-- GENERATED SPELL FOR [Frostbrood Destroyer] --


function spell0_30575(pUnit, Event) --@Freezing Breath,Self--
pUnit:FullCastSpellOnTarget(57477,pUnit)
pUnit:RegisterEvent('Sorts_30575', 12000, 1)
end

function spell1_30575(pUnit, Event) --@Wing Buffet,Self--
pUnit:FullCastSpellOnTarget(53363,pUnit)
pUnit:RegisterEvent('Sorts_30575', 5900, 1)
end

function Sorts_30575(pUnit, Event)
local choix_sorts_30575 = math.random(0, 1)
if choix_sorts_30575 == 0 then
pUnit:RegisterEvent('spell0_30575', 1, 1)
end
if choix_sorts_30575 == 1 then
pUnit:RegisterEvent('spell1_30575', 1, 1)
end
end

function mob30575_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30575', math.random(1500, 3000), 1)
end

function mob30575_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30575_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30575_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30575, 1, 'mob30575_Action')
RegisterUnitEvent(30575, 2, 'mob30575_Leave')
RegisterUnitEvent(30575, 3, 'mob30575_Kill')
RegisterUnitEvent(30575, 4, 'mob30575_Die')
